package com.amado.course14.service;

public class StudentManagerService {
	//非静态的
	private StudentService studentService = new StudentService();
	//静态的
	private static TeacherService teacherService = new TeacherService();
	//静态的方法
	public static void main(String[] args) {
		StudentManagerService studentManagerService  =  new StudentManagerService();
		System.out.println("1、学生管理 2、教师管理");
		int menu = 0;
		//添加
		if(menu==1){
//			studentService.addStudent();
			//先得到类的对象，再通过对象去访问非静态的属性或方法
			studentManagerService.studentService.addStudent();
			
		}else if(menu==2){
			teacherService.addTeacher();
		}
	}
}
